package cn.kogee.org.mapper;

import cn.kogee.basic.dto.ShopDto;
import cn.kogee.basic.mapper.BaseMapper;
import cn.kogee.org.domain.Shop;

import java.util.List;

/**
 * Mapper接口：部门
 */
public interface ShopMapper extends BaseMapper<Shop> {
    /**
     * 根据店铺名字地址查询店铺信息
     * @param name
     * @param address
     * @return
     */
    Shop loadByNameorAddress(Shop shop);

    /**
     * 批量新增
     * @param shops
     */
    void saves(List<Shop> shops);

    /**
     * 报表
     * @return
     */
    List<ShopDto> echarts();
}
